let url = {
  hostLists: '/index/hotLists',
  bannerList: '/index/banner',
  topList: '/category/topList',
  rank: '/category/rank',
  subList: '/category/subList',
  searchList: '/search/list',
  details: '/goods/details',
  cartAdd: '/cart/add',
  cartRemove: '/cart/remove',
  cartMremove: '/cart/mrremove',
  cartReduce: '/cart/reduce',
  cartList: '/cart/list',
  cartUpdate: '/cart/update',

};
// 开发环境和真实环境的切换
let host = 'http://rap2api.taobao.org/app/mock/7058';
// let host2 = '';

for (let key in url){
  if(url.hasOwnProperty(key)){
    url[key] = host + url[key]
  }
}

export default url
